<script>
	import api from 'config/apiUrl.js'
	import {set} from 'config/db.js'
	export default {
		onLaunch: function() {
			let data = {
				username:'admin',
				password:'nncskj123456',
				// nncskj
				rememberMe:false
			}
			console.log(api);
			// api.doLogin({data:data}).then(res=>{
				
			// }).catch(res=>{})
			let _this = this
			// uni.request({
			// 	url:'https://xmcr.nngyun.cn/WisdomSchool/api/doLogin?username=admin&password=nncskj123456&rememberMe=false',
			// 	method:'POST',
			// 	data:data,
			// 	// header:{
			// 	// 	"Content-T	ype":'application/x-www-form-urlencoded;charset=UTF-8'
			// 	// },
			// 	success: (res) => {
			// 		console.log(res.data.data);
			// 		this.$db.set('authorization',res.data.data.authorization)
			// 		this.$db.set('info',res.data.data)
			// 	}
			// })
		},
		onShow: function() {
			
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>
<style lang="scss">
	/*每个页面公共css */
	@import "uview-ui/index.scss";
	@import '@/static/css/style.css';
	page,body{
		// overflow: hidden;
		background-color: #F8F8F8;
		&::after {
			content: '';
		}
	}
	.border {
		border-bottom: 2rpx solid #F8F8F8;
	}
	.flex {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	
	.flex-wrap {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}
	
	.flex-around {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-around;
	}
	
	.flex-center {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
	}
	
	.flex-end {
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}
	
	.flex-start {
		display: flex;
		align-items: center;
		justify-content: flex-start;
	}
	
	.text-clamp {
		display: block;
		overflow: hidden;
		/* //超出的文本隐藏 */
		text-overflow: ellipsis;
		/* //溢出用省略号显示 */
		white-space: nowrap;
		/* //溢出不换行 */
	}
	
	.text-clamp2 {
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		/* //作为弹性伸缩盒子模型显示。 */
		-webkit-box-orient: vertical;
		/* //设置伸缩盒子的子元素排列方式--从上到下垂直排列 */
		-webkit-line-clamp: 2;
		/* //显示的行 */
	}
</style>
